<?php
namespace CAI\HistoricoBundle\Controller;

use CAI\HistoricoBundle\Entity\Persona;
use CAI\HistoricoBundle\Form\Type\PersonaType;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpFoundation\Request;

class PersonasController extends Controller
{
	public function arbitrosAction(Request $request)
	{
		//form para arbtiro
		$persona = new Persona();
		$form = $this->createForm(new PersonaType(), $persona);

		return $this->render('CAIHistoricoBundle:Default:bootstrap.arbitros.html.php', array('form' => $form->createView()));
	}

	public function tecnicosAction(Request $request)
	{
		//form para tecnico
		$tecnico = new Persona();
		$formTecnico = $this->createForm(new PersonaType(), $tecnico);

		return $this->render('CAIHistoricoBundle:Default:bootstrap.tecnicos.html.php', array('formTecnico' => $formTecnico->createView()));
	}
}